package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Permission;
import cn.wolfcode.crm.query.ObjectQuery;
import cn.wolfcode.crm.query.PageResult;

import java.util.List;


public interface IPermissionService {
    void save(Permission permission);

    void delete(Long id);

    void update(Permission permission);

    Permission get(Long id);

    List<Permission> getAll();

    PageResult<Permission> query(ObjectQuery qo);

    PageResult<Permission> queryPermissionByRoleId(Long roleId);

    void reload();

    List<String> queryPermissionResourceByEmpId(Long id);
}

